CKEDITOR.plugins.add('snapol',
{
    init: function(editor)
    {
		
		
		
		
		
          // eMail Plugin
      /*  var pluginName = 'email';
        editor.addCommand(pluginName, new CKEDITOR.dialogCommand('email'));
        
        editor.ui.addButton('email',
            {
                label: 'eMail Adresse einfügen',
                command: pluginName,
                icon: this.path + 'images/email.gif', 
                
            });

        CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/email.js');   */     
        
        
		
		
		
		
		
		//plugin code goes here
		var pluginName = '2010';
        editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));
		
        editor.ui.addButton('2010',
            {
                label: '2010',
                command: pluginName,
				icon: this.path + 'images/People_018.gif', 
				
            });

        CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/2010.js');





		// Link Plugin
		var pluginName = 's_link';
        editor.addCommand(pluginName, new CKEDITOR.dialogCommand('s_link'));
		
        editor.ui.addButton('email',
            {
                label: 'Link einfügen2',
                command: pluginName,
				icon: this.path + 'images/s_link.gif', 
				
            });

//        CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/s_link.js');
        CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/s_link.php');






//		CKEDITOR.dialog.add( '2010', CKEDITOR.basePath + '../ckeditor_customized/dialogs/insertTextDlg.js');

		
		
		
//		editor.addCommand(2011, alert('hello world'));
		editor.ui.addButton('2011',
            {
                label: '2011',
                command: '2010',
				icon: this.path + 'images/objects_078.gif'
            });
		
		
		
		editor.ui.addButton( 'YouTube',
                        {
                              
        init: function( editor )
        {
           
		   editor.insertHtml('<div class="media_embed">jhgkjhgjkhjk</div>');
		   
		},
			
								label : 'YouTube from Google',
                                command : 'youtube',
                                icon: this.path + 'images/youtube.gif'
								
                        });

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		var config = editor.config;

        editor.ui.addRichCombo( 'Zoom',
            {
                label : "100 %",
                title : 'Zoom',
                multiSelect : false,

                panel :
                {
                    css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss )
                },

                init : function()
                {
                    var zoomOptions = [50, 75, 100, 125, 150, 200, 400],
                        zoom;
                   
                    this.startGroup( 'Zoom level' );
                    // Loop over the Array, adding all items to the
                    // combo.
                    for ( i = 0 ; i < zoomOptions.length ; i++ )
                    {
                        zoom = zoomOptions[ i ];
                        // value, html, text
                        this.add( zoom, zoom + " %", zoom + " %" );
                    }
                    // Default value on first click
                    this.setValue(100, "100 %");
                }
            });
        // End of richCombo element

		
		
		
		
		
    }




});


